﻿using AutoMapper;
using Traceability.App.Applications.Aquaculture;
using Traceability.App.Applications.Company;
using Traceability.App.Applications.DeepProcess;
using Traceability.App.Applications.Photos;
using Traceability.App.Applications.Slaughter;
using Traceability.App.Applications.Traceability;
using Traceability.App.DTO;
using Traceability.Domain;

namespace Traceability.App
{
    public class AutomapperProfile:Profile
    {
        public AutomapperProfile() 
        {
            CreateMap<TraceabilityAddCommand, T_Traceability>();
            CreateMap<TraceabilityEaditCommand, T_Traceability>();
            CreateMap<AquacultureAddCommand, T_Aquaculture>();
            CreateMap<T_Health, HealthDto>();
            CreateMap<HealthAddCommand, T_Health>();
            CreateMap<CompanyAddCommand, T_Company>();
            CreateMap<PhotosSaveCommand, T_Photos>();
            CreateMap<SlaughterEaditCommand, T_Slaughter>();
            CreateMap<T_Company, CompanyDto>();
            CreateMap<DeepProcessEaditCommand, T_DeepProcess>();
            CreateMap<VendorEditCommand, T_Supplier>();
        }
    }
}
